<template>
	<view class="share_content">
		<image class="qr_img" :src="qr" mode=""></image>
	</view>
</template>

<script>
	import Qr from '../../utils/core/wxqrcode.js'
	export default {
		data() {
			return {
				qr: ''
			}
		},
		onLoad() {
			this.getQr()
		},
		methods: {
			getQr(){
				let userInfo=uni.getStorageSync('userInfo')
				console.log("userInfo",userInfo.user.userId);
				this.qr = Qr.createQrCodeImg('http://47.119.156.67/pages/public/register?userId='+userInfo.user.userId)
			}
		}
	}
</script>

<style>
	.share_content{
		width: 100%;
		height: 100vh;
		overflow: hidden;
		position: relative;
		background: url(../../static/share_bg.jpg) no-repeat center center;
		background-size: 80% 90%;
	}
	.qr_img{
		position: absolute;
		bottom: 150upx;
		left: 180upx;
		width: 400upx;
		height: 400upx;
	}
</style>
